import request from '@/utils/request'

// 查询邮件日志列表
export function listMailLog(query) {
  return request({
    url: '/mailServer/list',
    method: 'get',
    params: query
  })
}

// 查询邮件日志详细
export function getMailLog(msgId) {
  return request({
    url: '/mailServer/' + msgId,
    method: 'get'
  })
}

// 新增邮件日志
export function addMailLog(data) {
  return request({
    url: '/mailServer',
    method: 'post',
    data: data
  })
}

// 修改邮件日志
export function updateMailLog(data) {
  return request({
    url: '/mailServer',
    method: 'put',
    data: data
  })
}

// 删除邮件日志
export function delMailLog(msgId) {
  return request({
    url: '/mailServer/' + msgId,
    method: 'delete'
  })
}

// 重发邮件日志
export function reSend(data) {
  return request({
    url: '/mailServer/reSend',
    method: 'post',
    data: data
  })
}
